﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LFM_Playlist_Builder
{
    public static class Global
    {
        //Errors
        public const int OK = 0;
        public const int LOADERROR = 1;
        public const int AUTHERROR = 2;
        public const int CANCELERROR = 3;
        public const int USERAUTHERROR = 4;
        public const int MISCERROR = 99;

        //Load choices
        public const int LOADLIBRARY = 0;
        public const int LOADPLAYLIST = 1;
        public const int LOADCHOOSE = 2;

        //Modes
        public const int MLOADER = 0;
        public const int MLOVED = 1;
        public const int MREC = 2;
        public const int MLOVEDA = 3;
        public const int MNONE = 99;

        //Last.fm API information
        public const String SECRET = "a7615a6bd40e627579e0018a2f52538a";
        public const String LASTKEY = "e15aa30cb98e8d94a535cbbc2445fdf3";

        //Playlist information
        public const String FILESTART = "#EXTM3U";
        public const String EXTPRELUDE = "#EXTINF:";

        //Media Library
        public const int MINIMPORTSTRINGLENGTH = 1; //The smallest string allowed from a ML import

        //Extensioncheck
        public const int PLAYLISTFORMATDEFAULT = 0;
        public const int PLAYLISTFORMATM3U = 1;
        public const int PLAYLISTFORMATM3U8 = 2;

        //XML Info
        public const int MINTRACKNUMBER = 5; // If last.fm fails to return XML for a tracklist smaller than this, there is probably a connection problem
        public const int MAXTRACKNUMBER = 1000; // Max number of tracks per page

    }
}
